import { ApiProperty, PartialType } from '@nestjs/swagger';
import { ResFailDto, ResSuccessDto } from 'src/shared-module/dto/base.dto';
import { RankingListItem } from '../interface/ranking-list.interface';

export class RankingListByTomatoReqDto {
  @ApiProperty({
    required: true,
  })
  Limit: string;
}

export class RankingListResSuccessDto extends PartialType(ResSuccessDto) {
  @ApiProperty({
    required: true,
    type: 'array',
    items: {
      type: 'object',
      default: {
        nickname: '',
        head_image: '',
        tomato: 0,
        index: 0,
      },
    },
  })
  rankingList: Array<RankingListItem>;
}

export class RankingListResFailDto extends PartialType(ResFailDto) {}
